package com.ds.infrastructure.hyperspace.container.internal.opentracing.impl;

import io.netty.util.AsciiString;

/**
 * @Author: yaozh
 * @Description:
 */
public class TracerConstants {
    private TracerConstants() {
    }

    public static final String COMPONENT = "apirouter";
    public static final String APPLICATION_NAME = "apirouter_gateway";
    public static final String TIER_NAME = "apirouter";
    public static final String SERVER_ROLE = "SERVER";
    public static final String CLIENT_ROLE = "CLIENT";
    public static final String IGNORE_URI = "/favicon.ico";
    public static final String BAGGAGE_KEY_AGENT_TOKEN = "AgentToken";
    public static final String BAGGAGE_KEY_KEPLER_SAMPLED = "Kepler-Sampled";
    public static final String BAGGAGE_KEY_ZIPKIN_SAMPLED = "X-B3-Sampled";
    public static final String BAGGAGE_VALUE_SAMPLED = "1";
    public static final String BAGGAGE_VALUE_NO_SAMPLED = "0";
    public static final String NO_PARENT_ID = "-1";
    public static final String BAGGAGE_ZIPKIN_SPAN_ID_KEY = "X-B3-SpanId";
    public static final String BAGGAGE_ZIPKIN_TRACE_ID_KEY = "X-B3-TraceId";

    public static final AsciiString BAGGAGE_ZIPKIN_TRACE_ID_ASCII_KEY = new AsciiString(BAGGAGE_ZIPKIN_TRACE_ID_KEY.toLowerCase());
    public static final AsciiString BAGGAGE_ZIPKIN_SPAN_ID_ASCII_KEY = new AsciiString(BAGGAGE_ZIPKIN_SPAN_ID_KEY.toLowerCase());
    public static final AsciiString BAGGAGE_KEY_AGENT_TOKEN_ASCII_KEY = new AsciiString(BAGGAGE_KEY_AGENT_TOKEN.toLowerCase());
    public static final AsciiString BAGGAGE_KEY_ZIPKIN_SAMPLED_ASCII_KEY = new AsciiString(BAGGAGE_KEY_ZIPKIN_SAMPLED.toLowerCase());
}
